home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / CTalk / CTalk example.c next >
C/C++ Source or Header  |  1990-08-09  |  406b  |  19 lines

  1. #include "CTalk.h"
  2. main()
  3. {
  4.     CTalk*    human;
  5.     
  6.     human=new(CTalk);
  7.     human->ITalk();
  8.     human->SetRate(150);
  9.     human->SetPitch(100);
  10.     human->Say("\pHello, you little person");
  11.     human->SetRate(50);
  12.     human->Say("\pHello, you little person");
  13.     human->SetRate(150);
  14.     human->SetPitch(200);
  15.     human->Say("\pHello, you little person");
  16.     human->SetPitch(80);
  17.     human->Say("\pHello, you little person");
  18.     human->Dispose();
  19. }